From: Jasper St. Pierre Date: Fri, 21 Oct 2011 21:37:28 +0000 (-0400) Subject: st-texture-cache: Unref each texture when we destroy the async load data X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7378 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=be72b1d066a40db28aac0c0d38afa577be6f94a6;p=gnome-shell.git st-texture-cache: Unref each texture when we destroy the async load data We ref the textures when we add them to the list, so we should unref them when we destroy the list. --- diff --git a/src/st/st-texture-cache.c b/src/st/st-texture-cache.c index 466f1ba78..2333cffe3 100644 --- a/src/st/st-texture-cache.c +++ b/src/st/st-texture-cache.c @@ -348,7 +348,7 @@ texture_load_data_destroy (gpointer p) g_free (data->mimetype); if (data->textures) - g_slist_free (data->textures); + g_slist_free_full (data->textures, (GDestroyNotify) g_object_unref); } /**